package com.woniu.repaircenter.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.exception.XinanException;
import com.woniu.repaircenter.models.dto.RepairFileUploadDTO;
import com.woniu.repaircenter.service.model.RepairFileUpload;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.io.IOException;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 维修文件上传表 服务类
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
public interface RepairFileUploadService extends IService<RepairFileUpload> {

    Set<RepairFileUploadDTO> uploadImage(MultipartFile files, String userName) throws IOException, XinanException;

    List<String> getFilePathsByRepairUploadId(String repairUploadId);

    Integer addFileUpload(Set<Integer> set, String repairNum)throws XinanException;

    void deleteImage(Long id)throws XinanException;
}
